{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>短信验证</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	
	
	<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('search')}">
		<div class="row">
			<div class="col-sm-12">
				<div class="col-sm-2">
					<div class="input-group">
					<!--	<a href="{:url('add')}" class="btn btn-primary btn-outline">添加</a>-->
					</div>
				</div>
			</div>
		</div>
       
        
          <div class="row"> 
          	     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		  		标题<input type="text" id="title" name="title" value="" placeholder="请输入标题" class="bank" />
				手机号码<input type="text" id="mobile" name="mobile" value="" placeholder="手机号码" class="bank" />
				验证结果<select class="bank"; name='result'>
                      				 <option value="0" >请输入结果</option>
                     				 <option value="1" >成功</option>
                                     <option value="2" >失败</option>  
					</select> 
                	时间<input id='update_time' name='update_time'   onclick='WdatePicker()' type='text' placeholder="请输入时间" class="bank" />
				<span class="bank"><button type="submit" class="btn btn-sm btn-primary"> 查询</button> </span>
			 
      </div>
     </form>
	<div class="ibox-content">
		
		<div class="hr-line-dashed"></div>
		<div class="example-wrap">
			<div class="example">
				<form method="post" action="{:url('index')}">
					<table class="table table-bordered table-hover">
						<thead>
							<tr class="long-th">
								<th width="50">
									<input type="checkbox" class="check-all">
								</th>
								<th>标题</th>
								<th>手机号码</th>
								
								<th>验证结果</th>
								<th>更新时间</th>
								
							</tr>
						</thead>
						<tbody>
							{foreach name="list" item="vo"}
							<tr>
								<td class="text-center">
									<input type="checkbox" name="ids[]" value="{$vo.id}">
								</td>
								<td>{$vo.title}</td>
								<td class="text-center">{$vo.mobile}</td>
								<td class="text-center">{if $vo.result==1}成功
								                         {else $vo.result==2}失败
								                         {/if}
								</td>
								<td class="text-center">{$vo.update_time}</td>
								
							</tr>
							{/foreach}
						</tbody>
					</table>
				</form>
				
			</div>
		</div>
	</div>
</div>
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block} {block name="script"} {/block}